package com.itheima.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(value="user1")
public class User {

    private ObjectId id;
    private String username;
    private int age;
    private String address;
    private MessageTypeEnum messageTypeEnum;

}
